public class Pepe implements Runnable {
	public static int codigo = 0;
	private int cod = 0;
	private int prioridad = 0;

	public int getPrioridad() {
		return prioridad;
	}

	public void setPrioridad(int prioridad) {
		this.prioridad = prioridad;
	}

	public Pepe() {
		cod = codigo;
		codigo++;
	}

	@Override
	public void run() {
		System.out.println("PRIORIDAD: " + this.getPrioridad());
		for (int i = 0; i < 10; i++) {
			for (int h = 0; h < this.cod; h++) {
				System.out.print("-");
			}
			System.out.println();
		}

	}

}
